package com.roy.galaxy.service;

/**
 * Created by mc on 18/4/10.
 */
public abstract class AbstractRedisService {

    /**
     * 增加
     * @param key
     * @return
     */
    public abstract boolean decrease(final String key);


    /**
     * 写入
     *
     * @param key
     * @param value
     * @return
     */
    public abstract boolean set(final String key, Object value);

    /**
     * 读取缓存
     *
     * @param key
     * @return
     */
    public abstract Object get(final String key);

    /**
     * 获取redis key
     * @return
     */
    public abstract String getRedisKey();

}
